﻿using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;

namespace Protobuf_Gui.Domain
{
    [Serializable]
    public class PbFieldType : ProtocolElement
    {
        public PbFieldType(string name) : base(name)
        {

        }

        public override TreeNode ToTreeNode(TreeNode root)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// Unused
        /// </summary>
        /// <param name="writer"></param>
        /// <param name="nesting"></param>
        public override void ToFile(TextWriter writer, uint nesting)
        {
            string tabs = Tabs(nesting);
            writer.Write(tabs + Name);
        }
    }
}